<h2><%= action_name.gsub("_"," Recibos de ").pluralize.titleize %></h2>
<div class="box">
  <% if @procesado -%>
    <%= link_to " #{@procesado} Registros procesados", recibos_url %>
  <% else -%>
    <% form_tag(:action => action_name) do |f| -%>
      <%= print "A&ntilde;o", select_year(Date.today,:start_year => Time.now.year-1, :end_year => Time.now.year+1 )%>
      <%= print "Mes", select_month(Date.today) %>
      <%= print "Funcionario", select(:usuario, :id, Usuario.activos.collect{|u| [u.nombre,u.id]}, {:include_blank=>"Todos"}) %>
      <h3>Considerar movimientos entre</h3>
      <%= print "Fecha Inicial", text_field_tag(:desde, nil, :class => "dp") %>
      <%= print "Fecha Final", text_field_tag(:hasta, nil, :class => "dp") %>
      <%= submit_tag "Generar" %>
    <% end -%>
  <% end -%>
</div>
